home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of MacTutor - S…e Code for Volumes 1 to 5
/
The Best of MacTutor - Source Code for Volume 1-5 (Wayzata Technology)(6031)(1990).bin
/
Source Code
/
#49 (Oct 89)
/
Driver Code
/
Quickdraw.inc
< prev
next >
Wrap
Text File
|
1987-12-30
|
1KB
|
45 lines
Point RECORD 0; Point = RECORD CASE INTEGER OF
v DS.W 1; 1: (v: INTEGER;
h DS.W 1; h: INTEGER);
ORG v; 2: (vh: ARRAY[1..2]
vh DS.W h; OF INTEGER)
ENDR ; END;
Rect RECORD 0; Rect = RECORD CASE INTEGER OF
top DS.W 1; 1: (top: INTEGER;
left DS.W 1; left: INTEGER;
bottom DS.W 1; bottom: INTEGER;
right DS.W 1; right: INTEGER);
ORG top;
topLeft DS.L Point; 2: (topLeft: Point;
botRight DS.L Point; 3: (botRight: Point)
ENDR ; END;
BitMap RECORD 0; BitMap = RECORD
baseAddr DS.L 1; baseAddr: QDPtr;
rowBytes DS.W 1; rowBytes: INTEGER;
bounds DS.L Rect; bounds: Rect
ENDR ; END;
QuickDraw RECORD ,DECREMENT
thePort DS.L 1
white DS.B 8
black DS.B 8
gray DS.B 8
ltGray DS.B 8
dkGray DS.B 8
arrow DS.B cursRec
screenBits DS.B BitMap
randSeed DS.L 1
ORG -grafSize
ENDR
EventRecord RECORD 0 ; EventRecord = RECORD
what DS.W 1 ; what: INTEGER;
message DS.L 1 ; message: LONGINT;
when DS.L 1 ; when: LONGINT;
where DS.L Point ; where: Point;
modifiers DS.W 1 ; modifiers: INTEGER
ENDR ; END;